import puppeteer from 'puppeteer';
(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.setViewport({
    width: 1920,
    height: 1080
  })
  await page.goto("https://qianxi.baidu.com/");
  await page.screenshot({ path: "example.png" });
  const cities = await page.$$eval('.mgs-date-city',el => el.map(el => el.innerHTML));
  await browser.close();
})();
